package com.zjm.service;

import com.zjm.entity.*;

import java.util.List;
import java.util.Map;

public interface TeacherService {

    //注册用户
    Map<String ,Object> register(Teacher teacher ,String confirmPassword);

    //登录
    Teacher login(Integer id,String password);

    //展示资料
    Teacher showInfo(Integer teacher_id);

    //课程
    Map<String,String> publishClas(Clas clas);
    List<Clas> showMyClas(Integer teacher_id);
    List<Select_clas> showMyClasStudents(Integer clas_id);
    Map<String,Object> publishClasScore(Clas clas);
    Map<String,Object> publishScore(List<Select_clas> select_clas);

    //处理事务
    Map<String,Integer> showNumber(Integer teacher_id);
    List<Vacate> showVacates(Integer teacher_id);
    List<Change_major> showChangeMajor(Teacher teacher);
    void passChangeMajor(Integer student_id,String pass,Teacher teacher);


    void passVacate(Integer student_id , String pass , String reason);

    void updateScore(Integer clas_id,Integer student_id,Double score);

    //List<DemoData> showStudentList(Integer clas_id);

    void updateScoreList(List<DemoData> list);

}
